const express = require('express')
const router = express.Router()
const { DataSQLController } = require('../controller/data_sql')
const authMiddleware = require('../middleware/auth')
router.post('/v1/dataSql/data', authMiddleware, DataSQLController.dataSQLByID)
router.post('/v1/dataSql/exec', authMiddleware, DataSQLController.dataSQLCheck)
router.post('/v1/dataSql/add', authMiddleware, DataSQLController.dataSQLAdd)
router.put('/v1/dataSql/edit', authMiddleware, DataSQLController.dataSQLUpd)
router.delete('/v1/dataSql/del', authMiddleware, DataSQLController.dataSQLDel)
router.get('/v1/dataSql/list', authMiddleware, DataSQLController.dataSQLList)
router.get('/v1/dataSql/all', authMiddleware, DataSQLController.dataSQLAllList)
module.exports = router
